home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / .bin / awkzilla.awk next >
Text File  |  1997-07-25  |  2KB  |  31 lines

  1. ###########################################################################
  2. # awkzilla.awk - file to get Netscape 3.0's prefs to the cd.              #
  3. #                                                                         #
  4. # invoke it with:                                                         #
  5. #                                                                         #
  6. # $HOTMIXDIR/.bin/nawk -f $HOTMIXDIR/.bin/awkzilla.awk \          #
  7. #       $HOME/.netscape/preferences > $HOME/.netscape/preferehm17         #
  8. #                                                                         #
  9. # This is an awk script.  Well nawk really. We should place nawk on the   # 
  10. # CD just to be sure this functions.                                      #
  11. ###########################################################################
  12.  
  13. {
  14. gsub(/SHOW_TOOLBAR:.*/, "SHOW_TOOLBAR:\t\t" "True" )
  15. gsub(/SHOW_URL:.*/, "SHOW_URL:\t\t" "False" )
  16. gsub(/SHOW_DIRECTORY_BUTTONS:.*/, "SHOW_DIRECTORY_BUTTONS:\t" "False" )
  17. gsub(/SHOW_MENBAR:.*/, "SHOW_MENUBAR:\t\t" "True" )
  18. gsub(/AUTOLOAD_IMAGES:.*/, "AUTOLOAD_IMAGES:\t" "True" )
  19. gsub(/EMAIL_ADDRESS:.*/, "EMAIL_ADDRESS:\t\t"  ENVIRON["USERNAME"]"\@" ENVIRON["HOSTNAME"]"." ENVIRON["DOMAINNAME"])
  20. gsub(/HOME_DOCUMENT:.*/, "HOME_DOCUMENT:\t\t" "file\:" ENVIRON["HOTMIXDIR"] "\/html\/index.html" )
  21. gsub(/BOOKMARKS_FILE:.*/, "BOOKMARKS_FILE:\t\t" "~\/.netscape\/bookmarks_hm17.html" )
  22. gsub(/HISTORY_FILE:.*/, "HISTORY_FILE:\t\t" "~\/.netscape\/history_hm17.db" )
  23. gsub(/PERSONAL_MIME_TYPES:.*/, "PERSONAL_MIME_TYPES:\t" ENVIRON["HOTMIXDIR"] "\/.bin\/netscape\/mime.types.hm17")
  24. gsub(/PERSONAL_MAILCAP:.*/, "PERSONAL_MAILCAP:\t" ENVIRON["HOTMIXDIR"] "\/.bin\/netscape\/mailcap.hm17")
  25. gsub(/DISABLE_JAVA:.*/, "DISABLE_JAVA:\t\t" "False")
  26. gsub(/DISABLE_JAVASCRIPT:.*/, "DISABLE_JAVASCRIPT:\t" "False")
  27. print $0
  28. }
  29.  
  30.  
  31.